home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.saf.dom;
-
- import org.w3c.dom.DOMException;
- import org.w3c.dom.Document;
- import org.w3c.dom.NamedNodeMap;
- import org.w3c.dom.Node;
- import org.w3c.dom.NodeList;
-
- public class AssociatedNode extends AssociatedObject implements Node {
- private Node sourceNode;
-
- protected AssociatedNode(Document var1) {
- super((AssociatedDocument)null);
- this.sourceNode = var1;
- }
-
- protected AssociatedNode(AssociatedDocument var1, Node var2) {
- super(var1);
- this.sourceNode = var2;
- }
-
- public boolean equals(Object var1) {
- if (!(var1 instanceof AssociatedNode)) {
- return false;
- } else {
- AssociatedNode var2 = (AssociatedNode)var1;
- return this.sourceNode.equals(var2.sourceNode) && ((AssociatedObject)this).getAssociatedDocument().equals(((AssociatedObject)var2).getAssociatedDocument());
- }
- }
-
- public Node getSourceNode() {
- return this.sourceNode;
- }
-
- protected AssociatedNode associated(Node var1) {
- return var1 == null ? null : ((AssociatedObject)this).getAssociatedDocument().getAssociatedNode(var1);
- }
-
- public String getNodeName() {
- return this.getSourceNode().getNodeName();
- }
-
- public String getNodeValue() throws DOMException {
- return this.getSourceNode().getNodeValue();
- }
-
- public void setNodeValue(String var1) throws DOMException {
- this.getSourceNode().setNodeValue(var1);
- }
-
- public short getNodeType() {
- return this.getSourceNode().getNodeType();
- }
-
- public Node getParentNode() {
- return this.associated(this.getSourceNode().getParentNode());
- }
-
- public NodeList getChildNodes() {
- return new AssociatedNodeList(((AssociatedObject)this).getAssociatedDocument(), this.getSourceNode().getChildNodes());
- }
-
- public Node getFirstChild() {
- return this.associated(this.getSourceNode().getFirstChild());
- }
-
- public Node getLastChild() {
- return this.associated(this.getSourceNode().getLastChild());
- }
-
- public Node getPreviousSibling() {
- return this.associated(this.getSourceNode().getPreviousSibling());
- }
-
- public Node getNextSibling() {
- return this.associated(this.getSourceNode().getNextSibling());
- }
-
- public NamedNodeMap getAttributes() {
- return null;
- }
-
- public Document getOwnerDocument() {
- return ((AssociatedObject)this).getAssociatedDocument();
- }
-
- public Node insertBefore(Node var1, Node var2) throws DOMException {
- return this.associated(this.getSourceNode().insertBefore(var1, var2));
- }
-
- public Node replaceChild(Node var1, Node var2) throws DOMException {
- return this.associated(this.getSourceNode().replaceChild(var1, var2));
- }
-
- public Node removeChild(Node var1) throws DOMException {
- return this.associated(this.getSourceNode().removeChild(var1));
- }
-
- public Node appendChild(Node var1) throws DOMException {
- return this.associated(this.getSourceNode().appendChild(var1));
- }
-
- public boolean hasChildNodes() {
- return this.getSourceNode().hasChildNodes();
- }
-
- public Node cloneNode(boolean var1) {
- return this.associated(this.getSourceNode().cloneNode(var1));
- }
-
- public String toString() {
- return String.valueOf(String.valueOf(String.valueOf("(").concat(String.valueOf(this.getClass().getName()))).concat(String.valueOf(")"))).concat(String.valueOf(this.getSourceNode().toString()));
- }
-
- public void setPrefix(String var1) {
- }
-
- public String getPrefix() {
- return null;
- }
-
- public String getNamespaceURI() {
- return null;
- }
-
- public boolean supports(String var1, String var2) {
- return false;
- }
-
- public void normalize() {
- }
-
- public String getLocalName() {
- return null;
- }
- }
-